import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import App from "./App.jsx";
// 导入根store(大仓库)
import store from "./store/index.js";
// 导入 react-redux 提供的provider组件对仓库进行注入
import { Provider } from "react-redux";

createRoot(document.getElementById("root")).render(
  // 开启严格模式
  <StrictMode>
    {/* 将仓库注入到应用中 */}
    <Provider store={store}>
      <App />
    </Provider>
  </StrictMode>
);
